<?php

/*
 接口名称：/erpStudent/add
 接口描述：新增学员
*/

//获取参数
$osh_osid              = $route->bodyParams['osh_osid'];
$osh_ohid              = $route->bodyParams['osh_ohid'];
$osh_grade             = $route->bodyParams['osh_grade'];
$osh_status            = $route->bodyParams['osh_status'];
$osh_comment           = $route->bodyParams['osh_comment'];
$osh_content           = $route->bodyParams['osh_content'];

//写入数组
$insertArr = [
    'osh_osid'              => $osh_osid ,
    'osh_ohid'              => $osh_ohid ,
    'osh_grade'             => $osh_grade,
    'osh_comment'           => $osh_comment,
    'osh_create_time'       => time(),
    'osh_content'           => $osh_content,
    'osh_status'            => $osh_status,
];

//执行写入语句
$rsData = $db->mysqlDB->insert("oa_student_homework",$insertArr);

//返回成功结果
$response->responseData( true, $rsData );